<template>
  <div class="Common">
    <Navbar />
    <div class="content-box">
      <Slider />
      <div class="content">
        <router-view v-slot="{ Component }">
          <!-- <keep-alive> -->
            <component :is="Component" />
          <!-- </keep-alive> -->
        </router-view>
      </div>
    </div>
  </div>
</template>

<script>
import { defineComponent } from 'vue'
import Navbar from '../components/Navbar.vue'
import Slider from '../components/Slider.vue'

export default defineComponent({
  components: {
    Navbar,
    Slider,
  },
})
</script>

<style lang="scss">
@import '../assets/styles/_var.scss';
.Common {
  height: 100%;
  .content-box {
    display: flex;
    height: calc(100vh - #{$nav-heught});
    .content {
      height: calc(100vh - #{$nav-heught});
      width: calc(100vw - #{$slider-width});
      flex-grow: 1;
      & > *:first-child {
        box-sizing: border-box;
      }
    }
  }
}
</style>
